package com.pocket.insight.base.exception;

import com.pocket.insight.base.dto.ResponseCodeEnum;

import static com.pocket.insight.base.dto.ResponseCodeEnum.SYS_ERROR;

/**
 * @author zhaozhile
 */
public class BizException extends BaseException {

    private static final long serialVersionUID = 1L;

    public BizException(String errMessage) {
        super(SYS_ERROR.getCode(), errMessage);
    }

    public BizException(Long errCode, String errMessage) {
        super(errCode, errMessage);
    }

    public BizException(String errMessage, Throwable e) {
        super(SYS_ERROR.getCode(), errMessage, e);
    }

    public BizException(Long errorCode, String errMessage, Throwable e) {
        super(errorCode, errMessage, e);
    }

    public BizException(ResponseCodeEnum codeEnum, Object... args) {
        super(codeEnum.getCode(), args);
    }

}
